.class public Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "MergeVideoAndImageActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;
    }
.end annotation


# instance fields
.field private a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;"
        }
    .end annotation
.end field

.field private c:Landroid/widget/TextView;

.field private d:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

.field private e:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

.field private f:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;

.field private g:Landroidx/recyclerview/widget/RecyclerView;

.field private h:Landroid/view/View;

.field private i:Landroid/widget/ImageView;

.field private j:Landroid/widget/TextView;

.field private k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

.field private l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

.field private m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

.field private n:Lcom/esfile/screen/recorder/videos/merge/b0;

.field private o:Les/re;

.field private p:J

.field private q:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

.field private r:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

.field private s:Z

.field private t:Lcom/esfile/screen/recorder/videos/merge/a0;

.field private u:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;"
        }
    .end annotation
.end field

.field private v:Lcom/esfile/screen/recorder/videos/merge/a0$b;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    .line 2
    sget-object v0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;->NORMAL:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->r:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$d;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->v:Lcom/esfile/screen/recorder/videos/merge/a0$b;

    return-void
.end method

.method private A()Z
    .locals 11

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x1

    add-int/2addr v0, v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-eq v0, v2, :cond_0

    return v1

    :cond_0
    const/4 v0, 0x0

    .line 2
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_4

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 3
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_1

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 4
    invoke-virtual {v5}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v6

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v8

    cmp-long v10, v6, v8

    if-nez v10, :cond_2

    .line 5
    invoke-virtual {v5}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v6

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v8

    cmp-long v4, v6, v8

    if-nez v4, :cond_3

    .line 6
    invoke-virtual {v5}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v4

    iget-object v4, v4, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v6

    iget-object v6, v6, Landroid/util/Pair;->first:Ljava/lang/Object;

    invoke-virtual {v4, v6}, Ljava/lang/Long;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 7
    invoke-virtual {v5}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v4

    iget-object v4, v4, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v3

    iget-object v3, v3, Landroid/util/Pair;->second:Ljava/lang/Object;

    invoke-virtual {v4, v3}, Ljava/lang/Long;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    :cond_3
    const/4 v0, 0x1

    goto :goto_0

    :cond_4
    return v0
.end method

.method private B()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private C()Z
    .locals 6

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    :cond_0
    const-string v2, "extra_paths"

    .line 2
    invoke-virtual {v0, v2}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 3
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_1

    .line 4
    :cond_1
    new-instance v2, Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    .line 5
    new-instance v2, Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a:Ljava/util/ArrayList;

    .line 6
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/qa;

    .line 7
    invoke-direct {p0, v2}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Les/qa;)Lcom/esfile/screen/recorder/videos/merge/b0;

    move-result-object v2

    .line 8
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 9
    new-instance v3, Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-direct {v3}, Lcom/esfile/screen/recorder/videos/merge/b0;-><init>()V

    .line 10
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Lcom/esfile/screen/recorder/videos/merge/b0;->d(J)V

    .line 11
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(J)V

    .line 12
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v2

    invoke-virtual {v3, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(Landroid/util/Pair;)V

    const/4 v2, 0x2

    .line 13
    invoke-virtual {v3, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->b(I)V

    .line 14
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 15
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/b0;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    const/4 v0, 0x1

    return v0

    :cond_3
    :goto_1
    return v1
.end method

.method private D()V
    .locals 2

    .line 1
    sget v0, Les/x4;->durec_title:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 2
    sget v1, Les/z4;->durec_merge_videos_and_images:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 3
    sget v0, Les/x4;->durec_back:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 4
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    sget v0, Les/x4;->durec_save:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c:Landroid/widget/TextView;

    const/4 v1, 0x0

    .line 6
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c:Landroid/widget/TextView;

    sget v1, Les/z4;->durec_common_save:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private E()V
    .locals 2

    .line 1
    sget v0, Les/x4;->merge_video_tools_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;->setOnVideoToolListener(Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView$b;)V

    .line 3
    sget v0, Les/x4;->merge_image_tools_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->setOnImageToolListener(Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;)V

    return-void
.end method

.method private F()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->D()V

    .line 2
    sget v0, Les/x4;->merge_player:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->d:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    .line 3
    sget v0, Les/x4;->merge_image:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->e:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    .line 4
    sget v0, Les/x4;->merge_controller:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;

    .line 5
    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/g;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/g;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;->setOnFullScreenClickListener(Landroid/view/View$OnClickListener;)V

    .line 6
    sget v0, Les/x4;->merge_recycle_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->g:Landroidx/recyclerview/widget/RecyclerView;

    .line 7
    new-instance v1, Landroidx/recyclerview/widget/LinearLayoutManager;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 8
    sget v0, Les/x4;->merge_function_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->h:Landroid/view/View;

    .line 9
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    sget v0, Les/x4;->merge_function_icon:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->i:Landroid/widget/ImageView;

    .line 11
    sget v0, Les/x4;->merge_function_text:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->j:Landroid/widget/TextView;

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->z()V

    .line 13
    sget v0, Les/x4;->merge_editor_progress_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->q:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    .line 14
    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/p;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/p;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setOnCancelClickListener(Landroid/view/View$OnClickListener;)V

    .line 15
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->E()V

    return-void
.end method

.method private G()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    sget-object v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;->EDIT:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    iput-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->r:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->j()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->R()V

    .line 5
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->l()V

    goto :goto_0

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->i()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->P()V

    .line 8
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->g()V

    .line 9
    :cond_2
    :goto_0
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 10
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Ljava/util/ArrayList;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v0

    iget-object v0, v0, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->intValue()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f(I)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    return-void
.end method

.method private H()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {v0}, Les/re;->c()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {v0}, Les/re;->f()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    if-nez v0, :cond_1

    .line 4
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 7
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->f()I

    move-result v3

    if-ne v3, v1, :cond_2

    .line 8
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    const-string v0, "main"

    .line 9
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/c0;->b(Ljava/lang/String;)V

    .line 10
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->B()Z

    move-result v0

    if-nez v0, :cond_4

    .line 11
    sget v0, Les/z4;->durec_common_video_fail:I

    invoke-static {v0}, Les/ec;->a(I)V

    return-void

    .line 12
    :cond_4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f(Ljava/util/List;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->O()V

    goto :goto_1

    .line 14
    :cond_5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->Q()V

    :goto_1
    return-void
.end method

.method private I()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->s:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x1

    .line 2
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->s:Z

    .line 3
    invoke-virtual {v0}, Les/re;->f()V

    :cond_1
    :goto_0
    return-void
.end method

.method private J()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->K()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Ljava/util/ArrayList;)V

    return-void
.end method

.method private K()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->x()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter$b;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 7
    new-instance v0, Landroidx/recyclerview/widget/ItemTouchHelper;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/tools/ItemDraggableCallback;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-direct {v1, v2}, Lcom/esfile/screen/recorder/videos/merge/tools/ItemDraggableCallback;-><init>(Lcom/esfile/screen/recorder/videos/merge/tools/a;)V

    invoke-direct {v0, v1}, Landroidx/recyclerview/widget/ItemTouchHelper;-><init>(Landroidx/recyclerview/widget/ItemTouchHelper$Callback;)V

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->g:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/ItemTouchHelper;->attachToRecyclerView(Landroidx/recyclerview/widget/RecyclerView;)V

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method private L()V
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/ui/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/ui/a;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->b(Z)V

    .line 3
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Z)V

    .line 4
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 5
    sget v2, Les/x4;->emoji_icon:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 6
    sget v3, Les/w4;->durec_share_guide_dialog_img:I

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 7
    sget v2, Les/x4;->emoji_title:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    .line 8
    sget v2, Les/x4;->emoji_message:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 9
    sget v3, Les/z4;->durec_cut_save_query:I

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(I)V

    .line 10
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Landroid/view/View;)V

    .line 11
    sget v1, Les/z4;->durec_common_save:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/merge/m;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/videos/merge/m;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/ui/a;->b(ILandroid/content/DialogInterface$OnClickListener;)V

    .line 12
    sget v1, Les/z4;->durec_cut_save_query_giveup:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/merge/n;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/videos/merge/n;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/ui/a;->a(ILandroid/content/DialogInterface$OnClickListener;)V

    const/4 v1, 0x1

    .line 13
    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 14
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    .line 15
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->d()V

    return-void
.end method

.method private M()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->s:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/re;->g()V

    :cond_0
    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->s:Z

    return-void
.end method

.method private N()V
    .locals 4

    .line 1
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 2
    sget v1, Les/x4;->emoji_icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 3
    sget v3, Les/w4;->durec_delete_dialog_icon:I

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 4
    sget v1, Les/x4;->emoji_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v3, 0x8

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 5
    sget v1, Les/x4;->emoji_message:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 6
    sget v3, Les/z4;->durec_deleted_all_prompt:I

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(I)V

    .line 7
    new-instance v1, Lcom/esfile/screen/recorder/ui/a$e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/ui/a$e;-><init>(Landroid/content/Context;)V

    .line 8
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 9
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_restart:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/merge/d;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/videos/merge/d;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    .line 10
    invoke-virtual {v1, v0, v2}, Lcom/esfile/screen/recorder/ui/a$e;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_no_thanks:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/merge/i;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/videos/merge/i;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    .line 11
    invoke-virtual {v1, v0, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/k;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/merge/k;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    .line 12
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/content/DialogInterface$OnKeyListener;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 13
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/ui/a$e;->b()Lcom/esfile/screen/recorder/ui/a;

    return-void
.end method

.method private O()V
    .locals 5

    .line 1
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 2
    sget v1, Les/x4;->emoji_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 3
    sget v1, Les/x4;->emoji_icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 4
    sget v2, Les/w4;->durec_video_merge_size_different_dialog_icon:I

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 5
    sget v1, Les/x4;->emoji_message:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 6
    sget v2, Les/z4;->durec_video_size_different_dialog_msg:I

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 7
    invoke-virtual {v0}, Landroid/view/View;->getPaddingLeft()I

    move-result v1

    invoke-virtual {v0}, Landroid/view/View;->getPaddingRight()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getPaddingBottom()I

    move-result v3

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/view/View;->setPadding(IIII)V

    .line 8
    new-instance v1, Lcom/esfile/screen/recorder/ui/a$e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/ui/a$e;-><init>(Landroid/content/Context;)V

    .line 9
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/ui/a$e;

    const/4 v0, 0x1

    .line 10
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->b(Z)Lcom/esfile/screen/recorder/ui/a$e;

    .line 11
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Z)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_common_confirm:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/merge/j;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/videos/merge/j;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    .line 12
    invoke-virtual {v1, v0, v2}, Lcom/esfile/screen/recorder/ui/a$e;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 13
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/ui/a$e;->b()Lcom/esfile/screen/recorder/ui/a;

    return-void
.end method

.method private P()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->a(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    return-void
.end method

.method private Q()V
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/l;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/merge/l;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    const-string v1, "stitch"

    invoke-static {v0, v1}, Les/s4;->a(Les/s4$a;Ljava/lang/String;)V

    return-void
.end method

.method private R()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;->a(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/videos/merge/b0;)I
    .locals 6

    const/4 v0, 0x0

    .line 36
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-gt v0, v1, :cond_1

    .line 37
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v1

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v3

    cmp-long v5, v1, v3

    if-nez v5, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, -0x1

    :goto_1
    const/4 p1, 0x1

    if-nez v0, :cond_2

    goto :goto_2

    .line 38
    :cond_2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x2

    if-ne v0, v1, :cond_3

    .line 39
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    add-int/lit8 p1, p1, -0x3

    goto :goto_2

    :cond_3
    add-int/2addr p1, v0

    :goto_2
    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;)Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;
    .locals 0

    .line 6
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->r:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    return-object p1
.end method

.method private a(Les/qa;)Lcom/esfile/screen/recorder/videos/merge/b0;
    .locals 5

    .line 11
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;-><init>()V

    .line 12
    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->p:J

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->d(J)V

    .line 13
    invoke-virtual {p1}, Les/qa;->j()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->b(Ljava/lang/String;)V

    .line 14
    invoke-virtual {p1}, Les/qa;->k()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->c(J)V

    .line 15
    invoke-virtual {p1}, Les/qa;->i()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(Ljava/lang/String;)V

    .line 16
    invoke-virtual {p1}, Les/qa;->m()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->c(I)V

    .line 17
    invoke-virtual {p1}, Les/qa;->g()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(I)V

    .line 18
    invoke-virtual {p1}, Les/qa;->n()Z

    move-result v1

    if-eqz v1, :cond_0

    const-wide/16 v1, 0x7d0

    .line 19
    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->b(J)V

    .line 20
    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(J)V

    goto :goto_0

    .line 21
    :cond_0
    invoke-virtual {p1}, Les/qa;->c()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->b(J)V

    .line 22
    invoke-virtual {p1}, Les/qa;->c()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(J)V

    .line 23
    :goto_0
    new-instance p1, Landroid/util/Pair;

    const-wide/16 v1, 0x0

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-direct {p1, v1, v2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(Landroid/util/Pair;)V

    const/4 p1, 0x2

    .line 24
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->b(I)V

    .line 25
    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->p:J

    const-wide/16 v3, 0x1

    add-long/2addr v1, v3

    iput-wide v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->p:J

    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Ljava/util/ArrayList;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    return-object p0
.end method

.method public static a(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;)V"
        }
    .end annotation

    .line 8
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_paths"

    .line 9
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 10
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;I)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f(I)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Lcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Ljava/lang/Exception;)V
    .locals 0

    .line 5
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Ljava/lang/Exception;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Ljava/util/ArrayList;)V
    .locals 0

    .line 7
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Ljava/util/ArrayList;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;ZLcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(ZLcom/esfile/screen/recorder/videos/merge/b0;)V

    return-void
.end method

.method private a(Ljava/lang/Exception;)V
    .locals 1

    .line 55
    instance-of v0, p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;

    if-eqz v0, :cond_0

    .line 56
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Les/z4;->durec_merge_video_fail_by_not_available:I

    invoke-static {p1, v0}, Les/ec;->a(Landroid/content/Context;I)V

    goto :goto_0

    .line 57
    :cond_0
    instance-of v0, p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$OutOfSpaceException;

    if-eqz v0, :cond_1

    .line 58
    sget p1, Les/z4;->durec_cut_video_no_space:I

    invoke-static {p1}, Les/ec;->a(I)V

    goto :goto_0

    .line 59
    :cond_1
    instance-of p1, p1, Ljava/io/FileNotFoundException;

    if-eqz p1, :cond_2

    .line 60
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Les/z4;->durec_video_not_found:I

    invoke-static {p1, v0}, Les/ec;->a(Landroid/content/Context;I)V

    goto :goto_0

    .line 61
    :cond_2
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Les/z4;->durec_common_video_fail:I

    invoke-static {p1, v0}, Les/ec;->a(Landroid/content/Context;I)V

    :goto_0
    return-void
.end method

.method private a(ZLcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 28
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Lcom/esfile/screen/recorder/videos/merge/b0;)I

    move-result p1

    goto :goto_0

    :cond_0
    const/4 p1, -0x1

    :goto_0
    const/4 v0, 0x1

    if-ltz p1, :cond_1

    .line 29
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    sub-int/2addr v1, v0

    if-ge p1, v1, :cond_1

    .line 30
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    .line 31
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 32
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 33
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Ljava/util/ArrayList;)V

    .line 34
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-gt p1, v0, :cond_2

    .line 35
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->N()V

    :cond_2
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->q:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    return-object p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Lcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Ljava/util/ArrayList;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b(Ljava/util/ArrayList;)V

    return-void
.end method

.method private b(Lcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 1

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->z()V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method static synthetic b(Les/qe;)V
    .locals 1

    .line 14
    iget-object p0, p0, Les/qe;->b:Ljava/lang/String;

    const-string v0, "video"

    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_0

    const p0, 0x1040011

    .line 15
    invoke-static {p0}, Les/ec;->a(I)V

    :cond_0
    return-void
.end method

.method private b(Ljava/util/ArrayList;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;)V"
        }
    .end annotation

    .line 9
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/qa;

    .line 10
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Les/qa;)Lcom/esfile/screen/recorder/videos/merge/b0;

    move-result-object v0

    .line 11
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v1, v2, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_0

    .line 12
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 13
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Ljava/util/ArrayList;)V

    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    return-object p0
.end method

.method private c(Lcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 2

    .line 2
    new-instance p1, Lcom/esfile/screen/recorder/videos/merge/o;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/videos/merge/o;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    const-wide/16 v0, 0xc8

    invoke-static {p1, v0, v1}, Les/xc;->a(Ljava/lang/Runnable;J)V

    return-void
.end method

.method private c(Ljava/util/ArrayList;)V
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;)V"
        }
    .end annotation

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    if-nez v0, :cond_0

    .line 12
    new-instance v0, Les/re;

    invoke-direct {v0}, Les/re;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->e:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    invoke-virtual {v0, v1}, Les/re;->a(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->d:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0, v1}, Les/re;->a(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;)V

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/h;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/h;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-virtual {v0, v1}, Les/re;->a(Les/re$d;)V

    .line 16
    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const/4 v1, 0x0

    .line 17
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_1
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 18
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->f()I

    move-result v3

    const/4 v4, 0x1

    if-ne v3, v4, :cond_2

    goto :goto_0

    .line 19
    :cond_2
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->i()Z

    move-result v3

    if-eqz v3, :cond_3

    .line 20
    new-instance v3, Les/qe;

    invoke-direct {v3}, Les/qe;-><init>()V

    .line 21
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v4

    iput-wide v4, v3, Les/qe;->a:J

    const-string v4, "image"

    .line 22
    iput-object v4, v3, Les/qe;->b:Ljava/lang/String;

    .line 23
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Les/qe;->a(J)V

    .line 24
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->d()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v3, Les/qe;->c:Ljava/lang/String;

    .line 25
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 26
    iget-wide v4, v3, Les/qe;->a:J

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v6

    cmp-long v2, v4, v6

    if-nez v2, :cond_1

    :goto_1
    move-object v1, v3

    goto :goto_0

    .line 27
    :cond_3
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->j()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 28
    new-instance v3, Les/qe;

    invoke-direct {v3}, Les/qe;-><init>()V

    .line 29
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v4

    iput-wide v4, v3, Les/qe;->a:J

    const-string v4, "video"

    .line 30
    iput-object v4, v3, Les/qe;->b:Ljava/lang/String;

    .line 31
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->d()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/qe;->c:Ljava/lang/String;

    .line 32
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->r:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    sget-object v5, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;->NORMAL:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    if-ne v4, v5, :cond_4

    .line 33
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Les/qe;->a(J)V

    .line 34
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v2

    .line 35
    iget-object v4, v2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    iget-object v2, v2, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    invoke-virtual {v3, v4, v5, v6, v7}, Les/qe;->a(JJ)V

    goto :goto_2

    .line 36
    :cond_4
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->c()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Les/qe;->a(J)V

    const-wide/16 v4, 0x0

    .line 37
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->c()J

    move-result-wide v6

    invoke-virtual {v3, v4, v5, v6, v7}, Les/qe;->a(JJ)V

    .line 38
    :goto_2
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 39
    iget-wide v4, v3, Les/qe;->a:J

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v6

    cmp-long v2, v4, v6

    if-nez v2, :cond_1

    goto :goto_1

    .line 40
    :cond_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    sget-object v2, Lcom/esfile/screen/recorder/videos/merge/f;->a:Lcom/esfile/screen/recorder/videos/merge/f;

    invoke-virtual {p1, v2}, Les/re;->a(Les/re$c;)V

    .line 41
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {p1}, Les/re;->c()I

    move-result p1

    const/4 v2, 0x2

    if-ne p1, v2, :cond_6

    .line 42
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {p1}, Les/re;->f()V

    .line 43
    :cond_6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {p1, v0}, Les/re;->a(Ljava/util/List;)V

    if-nez v1, :cond_7

    .line 44
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_7

    const/4 p1, 0x0

    .line 45
    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    move-object v1, p1

    check-cast v1, Les/qe;

    :cond_7
    if-eqz v1, :cond_8

    .line 46
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {p1, v1}, Les/re;->a(Les/qe;)V

    .line 47
    :cond_8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;->a(Les/re;)V

    .line 48
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    invoke-virtual {p1}, Les/re;->f()V

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Lcom/esfile/screen/recorder/videos/merge/b0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    return-object p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    return-object p0
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c:Landroid/widget/TextView;

    return-object p0
.end method

.method private f(I)V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {v0, p1}, Les/re;->a(I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImageController;->setProgress(I)V

    :cond_0
    return-void
.end method

.method private f(Ljava/util/List;)Z
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;)Z"
        }
    .end annotation

    if-eqz p1, :cond_5

    .line 5
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_5

    .line 6
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 v0, -0x1

    const/4 v1, -0x1

    :cond_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 7
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->h()I

    move-result v3

    .line 8
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->b()I

    move-result v2

    if-gtz v0, :cond_1

    move v0, v3

    :cond_1
    if-gtz v1, :cond_2

    move v1, v2

    :cond_2
    if-ne v0, v3, :cond_3

    if-eq v1, v2, :cond_0

    :cond_3
    const/4 p1, 0x1

    return p1

    :cond_4
    const/4 p1, 0x0

    return p1

    .line 9
    :cond_5
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "path list is empty!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_1

    :goto_0
    throw p1

    :goto_1
    goto :goto_0
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Les/re;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    return-object p0
.end method

.method private x()V
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;-><init>()V

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->b(I)V

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private y()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->t:Lcom/esfile/screen/recorder/videos/merge/a0;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/a0;->a()V

    :cond_0
    return-void
.end method

.method private z()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->j()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->i:Landroid/widget/ImageView;

    sget v1, Les/w4;->durec_edit_video_trim_selector:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->j:Landroid/widget/TextView;

    sget v1, Les/z4;->durec_common_trim:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->n:Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->i()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->i:Landroid/widget/ImageView;

    sget v1, Les/w4;->durec_edit_media_duration_selector:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->j:Landroid/widget/TextView;

    sget v1, Les/z4;->durec_common_duration:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    :cond_2
    :goto_0
    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 52
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 53
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->H()V

    .line 54
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->c()V

    return-void
.end method

.method public synthetic a(Landroid/view/View;)V
    .locals 1

    .line 26
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/z;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/merge/z;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    invoke-static {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->a(Landroid/content/Context;Ljava/util/ArrayList;Ljava/lang/Runnable;)V

    .line 27
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->j()V

    return-void
.end method

.method public synthetic a(Les/qe;)V
    .locals 7

    .line 49
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 50
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v2

    iget-wide v4, p1, Les/qe;->a:J

    cmp-long v6, v2, v4

    if-nez v6, :cond_0

    .line 51
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    :cond_1
    return-void
.end method

.method public synthetic a(Ljava/util/ArrayList;)V
    .locals 5

    if-eqz p1, :cond_3

    .line 41
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b(Ljava/util/ArrayList;)V

    .line 42
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/b0;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b(Lcom/esfile/screen/recorder/videos/merge/b0;)V

    .line 43
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v2, 0x0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/qa;

    .line 44
    invoke-virtual {v3}, Les/qa;->o()Z

    move-result v4

    if-eqz v4, :cond_1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 45
    :cond_1
    invoke-virtual {v3}, Les/qa;->n()Z

    move-result v3

    if-eqz v3, :cond_0

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 46
    :cond_2
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    const-string v0, "add"

    invoke-static {p1, v1, v2, v0}, Lcom/esfile/screen/recorder/videos/merge/c0;->a(IIILjava/lang/String;)V

    :cond_3
    return-void
.end method

.method public synthetic a(Landroid/content/DialogInterface;ILandroid/view/KeyEvent;)Z
    .locals 0

    const/4 p3, 0x4

    if-ne p2, p3, :cond_0

    .line 47
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 48
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public synthetic a(Ljava/util/List;Les/qa;Z)Z
    .locals 1

    .line 40
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->m:Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    invoke-virtual {v0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;->a(Ljava/util/List;Les/qa;Z)Z

    move-result p1

    return p1
.end method

.method public synthetic b(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 16
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 17
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 18
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->b()V

    return-void
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 0

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->y()V

    return-void
.end method

.method public synthetic c(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 3
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 4
    new-instance p1, Lcom/esfile/screen/recorder/picture/newpicker/g;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/picture/newpicker/g;-><init>(Landroid/content/Context;)V

    const/4 p2, 0x2

    .line 5
    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/picture/newpicker/g;->a(I)Lcom/esfile/screen/recorder/picture/newpicker/g;

    .line 6
    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/picture/newpicker/g;->b(I)Lcom/esfile/screen/recorder/picture/newpicker/g;

    const/4 p2, 0x1

    .line 7
    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/picture/newpicker/g;->a(Z)Lcom/esfile/screen/recorder/picture/newpicker/g;

    new-instance p2, Lcom/esfile/screen/recorder/videos/merge/e;

    invoke-direct {p2, p0}, Lcom/esfile/screen/recorder/videos/merge/e;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    .line 8
    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/picture/newpicker/g;->a(Lcom/esfile/screen/recorder/picture/newpicker/h;)Lcom/esfile/screen/recorder/picture/newpicker/g;

    new-instance p2, Lcom/esfile/screen/recorder/videos/merge/c;

    invoke-direct {p2, p0}, Lcom/esfile/screen/recorder/videos/merge/c;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V

    .line 9
    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/picture/newpicker/g;->a(Lcom/esfile/screen/recorder/picture/newpicker/f;)Lcom/esfile/screen/recorder/picture/newpicker/g;

    .line 10
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/newpicker/g;->a()V

    return-void
.end method

.method public synthetic d(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 2
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public synthetic e(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->Q()V

    .line 3
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->l:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->a()V

    return-void

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->k:Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView;->a()V

    return-void

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->q:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_2

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->y()V

    return-void

    .line 7
    :cond_2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->A()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->L()V

    return-void

    .line 9
    :cond_3
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sget v1, Les/x4;->durec_back:I

    if-ne v0, v1, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->onBackPressed()V

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sget v1, Les/x4;->durec_save:I

    if-ne v0, v1, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->H()V

    goto :goto_0

    .line 5
    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    sget v0, Les/x4;->merge_function_view:I

    if-ne p1, v0, :cond_2

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->G()V

    :cond_2
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    sget p1, Les/y4;->durec_merge_video_and_image_activity:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->C()Z

    move-result p1

    if-nez p1, :cond_0

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 5
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->F()V

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->J()V

    .line 7
    invoke-static {}, Lcom/esfile/screen/recorder/videos/merge/c0;->k()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->o:Les/re;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Les/re;->i()V

    :cond_0
    return-void
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onPause()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->I()V

    return-void
.end method

.method protected onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onResume()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->M()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "MergeVideoAndImageActivity"

    return-object v0
.end method

.method public synthetic v()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->b:Ljava/util/ArrayList;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c(Ljava/util/ArrayList;)V

    return-void
.end method

.method public synthetic w()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->t:Lcom/esfile/screen/recorder/videos/merge/a0;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/a0;->a()V

    .line 3
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/a0;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->u:Ljava/util/List;

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/a0;-><init>(Ljava/util/List;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->t:Lcom/esfile/screen/recorder/videos/merge/a0;

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->v:Lcom/esfile/screen/recorder/videos/merge/a0$b;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/a0;->a(Lcom/esfile/screen/recorder/videos/merge/a0$b;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->t:Lcom/esfile/screen/recorder/videos/merge/a0;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/a0;->b()V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->c:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    return-void
.end method
